|
|
|
|
|
|
|
Installing the ODBC Interface |
|
|
|
|
|
|
|
|
The most recent version of the ODBC interface is included in the Visual Basic 5 installation files. If you did not install the ODBC interface when you first installed Visual Basic 5, you need to do it now in order to continue the lesson. If you already have installed the ODBC interface, you can skip this section and move on to the section ''Registering an ODBC Data Source." |
|
|
|
|
| |
|
|
|
|
You also might have other software packages that installed the ODBC interface on your system. Look for a program called ODBCAD32.EXE. If you do not find this program, refer to the Visual Basic 5 installation disks or CD-ROM to install the ODBC interface. |
|
|
|
|
|
|
|
|
|
|
The ODBC kit that ships with Visual Basic 5 contains drivers for SQL Server. Drivers also are available for accessing desktop file formats such as dBASE, FoxPro, Microsoft Access, and Excel spreadsheets. The ODBC installation options appear when you first install Visual Basic 5. For a full installation, you need to check not just the SQL Server and Oracle Drivers, but also the ISAM drivers (for Microsoft Jet use) and the Desktop ODBC drivers (for ODBC use). |
|
|
|
|
|
|
|
|
Now that you have the ODBC Administrator installed, you are ready to define an ODBC data source that you can use with your Visual Basic 5 programs. |
|
|
|
|
|
|
|
|
Registering an ODBC Data Source |
|
|
|
|
|
|
|
|
The ODBC interface is based on the idea that defined data sources are available for users and programs to access. Each desktop has its own list of available ODBC data sources. On 16-bit systems, this list of ODBC data sources is kept in the ODBC.INI file in the \WINDOWS\SYSTEM directory. On 32-bit systems, the information is stored in the Registry under the SOFTWARE/ODBC keys. |
|
|
|
|
| |
|
|
|
|
Even though you can call up the ODBC.INI file with a text editor or open the Windows Registry by using REGEDIT.EXE, I do not recommend that you alter these entries using anything other than the ODBC Administrator program. Incorrect data in the ODBC entries in the INI file or in the Registry can cause the ODBC interface to behave unpredictably or to fail completely. |
|
|
|
|
|
|
|